<template>
  <el-row :gutter="10" class="top-view">
    <!-- 第一列：今日销售额 -->
    <el-col :span="6"> <TodaySales></TodaySales></el-col>
    <!-- 第一列：今日订单 -->
    <el-col :span="6"><TodayOrders></TodayOrders></el-col>
    <!-- 第一列：今日交易用户数 -->
    <el-col :span="6"><TodayUsers></TodayUsers></el-col>
    <!-- 第一列：今日累计用户数 -->
    <el-col :span="6"><TotalUsers></TotalUsers></el-col>
  </el-row>
</template>
<script lang="ts">
export default {
  name: "TopView",
};
</script>
<script lang="ts" setup>
import TodaySales from "./TodaySales.vue";
import TodayOrders from "./TodayOrders.vue";
import TodayUsers from "./TodayUsers.vue";
import TotalUsers from "./TotalUsers.vue";
</script>
<style lang="scss">
// 设置各个子级组件中部分的数字的样式
.number {
  font-size: 12px;
  font-weight: bold;
  margin: 0 5px;
}
// 设置上下箭头的样式
.increment {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px;
  border-color: transparent transparent green transparent;
}
.decrement {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px;
  border-color: red transparent transparent transparent;
}
</style>
